<template>
  <div id="app" style="max-width:600px;margin:0 auto;">
    <!-- <A></A> -->
    <router-view />
    <van-overlay :show="loadingEnable">
      <div class="wrapper" @click.stop>
        <van-loading type="spinner" />
      </div>
    </van-overlay>
  </div>
</template>
<script>
// import A from './components/a.vue';
export default {
  // components: {
  //   A
  // }
  data: () => ({}),
  computed: {
    loadingEnable: {
      get() {
        return this.$store.state.loadingEnable;
      },
      set() {
        this.$store.state.loadingEnable = false;
      }
    }
  },
  created() {
    console.log(1);
  }
};
</script>
<style lang="scss">
#app {
  margin: 0 auto;
  max-width: 500px;
}
</style>